package com.example.blog.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

@Data
public class CommentReply {
    //分布式id比较长  防止前端精度丢失 将id转换为String
    private String from;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long formId;
    private String formHeadImg;
    private String to;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long toId;
    private String comment;
    private String time;
    private Long commentNum=5L;
    private Long like=6L;
    private Boolean inputShow=false;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
}
